import min from '../views/main/index.vue';
import home from '../views/home/index.vue';
import home2 from '../views/home/index2.vue';
import activity from '../views/activity/index.vue';
import deliveryRecord from '../views/activity/deliveryRecord';
import salesOrder from '../views/activity/salesOrder';
import vehicleInformation from '../views/activity/vehicleInformation';

const routes = [
  {
    path: '/',
    component: min,
    name: 'main',
    redirect: 'home',
    children: [
      { path: 'home', name: 'home', component: home },
      { path: 'home2', name: 'home2', component: home2 },
      { path: 'activity', name: 'activity', component: activity },
      { path: 'salesOrder', name: 'salesOrder', component: salesOrder },
      {
        path: 'vehicleInformation',
        name: 'vehicleInformation',
        component: vehicleInformation,
      },
      {
        path: 'deliveryRecord',
        deliveryRecord: 'activity',
        component: deliveryRecord,
      },
    ],
  },
  // {
  //   path: '/login',
  //   name: 'login',
  //   component: login,
  // },
];
export default routes;
